package cn.com.huzo.model.entities.tech;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 单耗-全码用量表实体类
 *
 * @author 吴旭
 */
public class PieceYardageLinesSizeGradeEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 7789329744904072164L;
    private Long HeaderId;
    private String LinesId;
    private String ParentLinesId;     // 所属单耗明细标识
    private Long ProductSizeId;       // 尺码ID
    private String SizeNme;           // 尺码名
    private Double PieceYardage;      // 尺码对应的用量

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public String getParentLinesId() {
        return ParentLinesId;
    }

    public void setParentLinesId(String ParentLinesId) {
        this.ParentLinesId = ParentLinesId;
    }

    public Long getProductSizeId() {
        return ProductSizeId;
    }

    public void setProductSizeId(Long ProductSizeId) {
        this.ProductSizeId = ProductSizeId;
    }

    public String getSizeNme() {
        return SizeNme;
    }

    public void setSizeNme(String SizeNme) {
        this.SizeNme = SizeNme;
    }

    public Double getPieceYardage() {
        return PieceYardage;
    }

    public void setPieceYardage(Double PieceYardage) {
        this.PieceYardage = PieceYardage;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof PieceYardageLinesSizeGradeEntity)) {
            return false;
        }

        final PieceYardageLinesSizeGradeEntity that = (PieceYardageLinesSizeGradeEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
